﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using CRMBiz;

namespace CRMWeb.WebServices
{
    /// <summary>
    /// Summary description for UpdateHistoryData
    /// </summary>
    public class UpdateHistoryData : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            try
            {
                int app_id = int.Parse(context.Request.Params["app_id"]);
                string HistoryDate = Convert.ToDateTime(context.Request.Params["HistoryDate"]).ToString("yyyy-MM-dd");
                string HistoryTime = context.Request.Params["HistoryTime"];
                string Action = context.Request.Params["Action"];
                string Operator = context.Request.Params["Operator"];
                string Description = context.Request.Params["Description"];
                ClientProfileHandler.UpdateHistoryData(app_id, HistoryDate, HistoryTime, Action, Operator, Description);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}